// module name: signEXT
// author: yangtao2019
// date: 2021.07.10

`timescale 1ns / 1ps

module signEXT
#(
    parameter WIDTH_in = 12,
    parameter WIDTH_out = 64
)
(
    input [WIDTH_in-1:0] in,
    output [WIDTH_out-1:0] out
);

    parameter EXT = WIDTH_out - WIDTH_in;
    assign out = { {EXT{in[WIDTH_in-1]}}, in };
    
endmodule

